package com.baylor.server.business.constant;

import com.baylor.server.business.common.ErrorCode;

/**
 * 业务逻辑错误，错误码范围：12000-12999
 */
public enum BusinessErrorEnum implements ErrorCode {

	CUSTOMER_EXIST(1200,"账号已存在"),

    CELLPHONE_EMPL(11324, "电话号码不能为空"),

    USER_GET_VERICODE_ERROR_TIME(12002,"用户获取验证码超时"),

    RESULT_DATA_EMPTY(12000, "未找到数据"),

    HAD_EMAIL(11327, "邮箱已存在"),

    HAD_ID(11327, "身份证已存在"),

    USER_GET_VERICODE_ERROR(12001,"用户获得验证码错误"),

    JSON_FORMAT_ERROR(12001, "JSON格式转换错误");
    

    int errorCode;

    String errorMsg;

    BusinessErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
